package com.ruoyi.business.task;

import com.ruoyi.business.domain.BusinessTradeRecord;
import com.ruoyi.business.dto.PSIceOrderStatus;
import com.ruoyi.business.dto.PSIceTransStatus;
import com.ruoyi.business.enumType.PSIceOrderState;
import com.ruoyi.business.publisher.MessagePublisher;
import com.ruoyi.business.service.IBusinessTradeRecordService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.List;
import java.util.Objects;

@Component("businessPublishTaskTest")
public class BusinessPublishTaskTest {


    /**
     * 日志
     */
    private static final Logger logger = LoggerFactory.getLogger(BusinessPublishTaskTest.class);


    @Autowired
    private MessagePublisher messagePublisher;

    /**
     * 同步当日交易订单状态
     */
    public void doPublishTest() {
        messagePublisher.publish("[{\"symbol\": \"SHSE.512000\",\"price\": 0.79,\"open\": 0.787, \"high\": 0.791,\"low\": 0.787}]");
    }
}
